/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2022. All rights reserved.
 * Description: 
 * Author: g00421808
 * Create: 11/21/2022
 * Notes: 
 */

#ifndef JSBIND_VERSION_H
#define JSBIND_VERSION_H

#include "jsbind/config.h"

#define JSB_MAJOR_VERSION 1
#define JSB_MINOR_VERSION 1
#define JSB_PATCH_LEVEL 6

#define JSB_SX(x) #x
#define JSB_S(x) JSB_SX(x)

#define JSB_VERSION_STRING                                        \
  JSB_S(JSB_MAJOR_VERSION)                                         \
  "." JSB_S(JSB_MINOR_VERSION) \
  "." JSB_S(JSB_PATCH_LEVEL)


namespace Jsb {
class JSBIND_EXPORT Version {
public:
    static const char* GetVersion() { return versionString_; }

private:
    static const char* versionString_;
    static int major_;
    static int minor_;
    static int patch_;
};
} // namespace Jsb

#endif //JSBIND_VERSION_H
